-- GENERATED SPELL FOR [Rocknail Ripper] --


function spell0_21478(pUnit, Event) --@Rip,n/a--
pUnit:FullCastSpellOnTarget(33912,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21478', 15000, 1)
end

function Sorts_21478(pUnit, Event)
local choix_sorts_21478 = math.random(0, 0)
if choix_sorts_21478 == 0 then
pUnit:RegisterEvent('spell0_21478', 1, 1)
end
end

function mob21478_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21478', math.random(1500, 3000), 1)
end

function mob21478_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21478_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21478_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21478, 1, 'mob21478_Action')
RegisterUnitEvent(21478, 2, 'mob21478_Leave')
RegisterUnitEvent(21478, 3, 'mob21478_Kill')
RegisterUnitEvent(21478, 4, 'mob21478_Die')
